package be.donovan.gui;

import be.donovan.gui.helper.components.AbstractDTOController;
import be.donovan.gui.helper.components.JXTableDecorator;
import be.donovan.model.Product;

public class AllProductsController extends AbstractDTOController<Product>{

	@Override
	public void initListeners() {
		super.initListeners();
		getView().setName(getMessage("AllProducts"));
		JXTableDecorator.setStyleAndEditors(getView().catalogTable, "catalogTable."+getDtoClass().getSimpleName(),
				getView().scrollPane, "Manage Products");
	}

	@Override
	public Class<Product> getDtoClass() {
		return Product.class;
	}
}
